<template>
	<view>
		<view>
				<swiper class="swiper" circular  :autoplay="true" :interval="5000"
					:duration="500">
					<swiper-item v-for="item in detail.imgUrl">
					<image :src="item.url" mode=""></image>
					</swiper-item>
	
				</swiper>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				  goods_id:'',
				  detail:{}
			}
		},
		onLoad(options) {
			  console.log(options)
			  this.goods_id = options.id;
			  this.get_detail()
		},
		methods: {
			get_detail(){
				uni.$u.http.get('/goods/get_detail/'+this.goods_id).then(res=>{
					// res.imgUrl.forEach(v=>{
						
					// 	v.img = v.url;
					// 	delete v.url
						
					// })
					this.detail = res;
				
				})
			}
		}
	}
</script>

<style>

</style>
